﻿@model TS2015.Models.TbThiSinh
@{
    AjaxOptions aj = new AjaxOptions
    {
        InsertionMode = InsertionMode.Replace,
        UpdateTargetId = "result",
        LoadingElementId = "loading-icon",
        OnFailure = "AjaxFailure",
        OnBegin = "AjaxBegin",
        OnComplete = "AjaxComplete"
    };
}
@using (Html.BeginForm("UploadImage", "Home", FormMethod.Post, new { enctype = "multipart/form-data", @id = "Upload" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    @Html.HiddenFor(m => m.MaTS)
    <section class="panel panel-primary no-b">
        <header class="panel-heading clearfix brtl brtr">
            <a href="javascript:;" class="pull-left mr15">
                <img id="displayAnh2" src='~/Uploads/AnhThiSinh/@(Model.Anh ?? "avatar.jpg")' class="avatar avatar-lg img-circle" alt="">
                @Html.TextBoxFor(m => m.Anh, new { multiple = "multiple", type = "file", @class = "hide", id = "Anh2" })
                @Html.ValidationMessageFor(model => model.Anh)
            </a>
            <div class="overflow-hidden">
                <a href="javascript:;" class="h4 show no-m pt10">@(Model.HoDem + " " + Model.Ten)</a><br />
                <small class="show no-m"><i></i>@Model.NgaySinh.ToString("dd/MM/yyyy")</small>
                <small class="show no-m pb5">
                    <i>@Model.DiaChi</i>
                </small>
                <small class="show no-m pb5">
                    <i>@Model.TbChuyenNganh.TenChuyenNganh</i>
                </small>
                <small class="show no-m pb5">
                    @if (@Model.TrangThaiDongTien == true)
                    {
                        <i>Đã đóng phí</i>
                    }
                    else
                    {
                        <i>Chưa đóng phí</i>
                    }
                </small>
                @*<a href="#" class="show no-m pb5">
                        <small>
                            <i class="glyphicon glyphicon-cog"></i>
                            Sửa đổi thông tin
                        </small>
                    </a>*@
            </div>
        </header>
        @*<div class="panel-footer no-p no-b prb">
            <div class="row no-m">
                <div class="col-xs-4 bg-primary p10 text-center">
                    <a href="/Home/Profile">
                        <i class="ti-heart mb5 glyphicon glyphicon-home">
                        </i>
                    </a>
                </div>
                <div class="col-xs-4 bg-info p10 text-center">
                    <a href="javascript:;">
                        <i class="glyphicon glyphicon-envelope mb5"></i>
                        <span class="badge bg-danger pull-right">8</span>
                    </a>
                </div>
                <div class="col-xs-4 bg-primary p10 text-center">
                    <a href="javascript:;">
                        <span class="glyphicon glyphicon-bell mb5"></span>
                        <span class="badge bg-danger pull-right">2</span>
                    </a>
                </div>
            </div>

        </div>*@
    </section>
    <div class="list-group">
        <a href="/" class="list-group-item">
            <i class="glyphicon glyphicon-globe"></i> Trang chủ
        </a>
        @*@Ajax.RouteLink("Thay", new { controller = "Home", action = "EditAccount", pId = Model.MaTS.Trim() }, new AjaxOptions { HttpMethod = "get", UpdateTargetId = "result", InsertionMode = InsertionMode.Replace }, new { @class = "list-group-item" })*@
        @*@Ajax.RouteLink("Thay", "EditAccount", "Home", new { id = Model.MaTS.Trim(), @class = "list-group-item" }, new AjaxOptions { HttpMethod = "get", InsertionMode = InsertionMode.Replace })
            @*<i class="glyphicon glyphicon-user"></i> Thay đổi mật khẩu*@
        <a href='@Url.Action("EditAccount", "Home")/@Model.MaTS' class="list-group-item">
            <i class="glyphicon glyphicon-user"></i> Thay đổi mật khẩu
        </a>
        <a href='@Url.Action("EditInformation", "Home")/@Model.MaTS' class="list-group-item">
            <i class="glyphicon glyphicon-edit"></i> Chỉnh sửa hồ sơ
        </a>
        <a href="/Home/TrangThaiHoSo" class="list-group-item">
            <i class="glyphicon glyphicon-transfer"></i> Trạng thái hồ sơ
        </a>
        <a href="/Home/ProfileTinTuc" class="list-group-item">
            <i class="glyphicon glyphicon-star"></i> Tin tức
        </a>
        <a href="/Home/Logout" class="list-group-item">
            <i class="glyphicon glyphicon-log-out"></i> Thoát
        </a>
    </div>
}
